package com.alibaba.Text.p1;

public class PersonText {

    public static void main(String[] args) {
        Doctor d1 = new Doctor();

        d1.setProssional("中医");
        System.out.println(d1.getProssional());
        d1.setName("张仲景");
        System.out.println(d1.getName());


        Person p3 = new Doctor();
        p3.setAge(15);
        p3.setName("站氟硅酸钠");
        p3.setSex("男");

        ((Doctor)p3).setProssional("外壳手术");

        System.out.println(((Doctor) p3).getProssional());

        Person p4 = new Progammer();
        p4.setName("周芷若");
        System.out.println(p4.getName());
                


    }
}
